<template>
	<view class="">
		<u-popup :show="cardShow" mode="center" >
			<view class="cardpopup">
				<view class="cardpopup-dingbuImg"></view>
				<view class="cardpopup-cardbgImg">
					<view class="cardpopup-cardbgImg-title">当前已翻出</view>
					<view class="cardpopup-cardbgImg-jinbi">
						<text>8</text>
						<text>金币</text>
					</view>
					<view class="cardpopup-cardbgImg-btn">看视频继续翻十位卡</view>
					<view class="cardpopup-cardbgImg-close" @click="closecard">
						<u-icon name="close-circle-fill" size="40"></u-icon>
					</view>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	
	export default {
		props: {
			cardShow: {
				type: Boolean,
				default: true
			}
		},
		data(){
			return {
				
			}
		},
		methods:{
			closecard(){
				this.$emit('update:cardShow',false)
			}
		}
	}
</script>

<style lang="scss" scoped>
	/deep/ .u-popup__content {
		background-color: transparent !important;
	}
	.cardpopup{
		display: flex;
		flex-direction: column;
		align-items: center;
		position: relative;
		&-dingbuImg{
			background-image: url('../../image/fangtoubu.png');
			width: 484rpx;
			height: 266rpx;
			background-size: 100% 100%;
			background-repeat: no-repeat;
			position: absolute;
			top: -160rpx;
		}
		&-cardbgImg{
			background-image: url('../../image/cardbg.png');
			width: 648rpx;
			height: 858rpx;
			background-size: 100% 100%;
			background-repeat: no-repeat;
			display: flex;
			flex-direction: column;
			align-items: center;
			&-title{
				font-family: Inter, Inter;
				font-weight: 400;
				font-size: 44rpx;
				color: #000000;
				margin-top: 120rpx;	
			}
			&-jinbi{
				margin-top: 120rpx;
				font-family: Inter, Inter;
				font-weight: normal;
				color: #F9A540;
				text{
					&:nth-child(1){
						font-size: 100rpx;
					}
					&:nth-child(2){
						font-size: 30rpx;
						margin-left: 5rpx;
					}
				}
			}
			&-btn{
				background-image: url('../../image/kanbtn.png');
				width: 440rpx;
				height: 69rpx;
				background-size: 100% 100%;
				background-repeat: no-repeat;
				margin-top: 112rpx;
				line-height: 69rpx;
				text-align: center;
				font-family: Inter, Inter;
				font-weight: 400;
				font-size: 32rpx;
				color: #FFFFFF;
			}
			&-close{
				// width: 60rpx;
				// height: 60rpx;
				// background: #4C3D36;
				// border-radius: 50%;
				// border: 1rpx solid #7B7B7B;
				// font-family: Inter, Inter;
				// font-weight: 400;
				// font-size: 50rpx;
				// color: #FFFFFF;
				// text-align: center;
				// line-height: 40rpx;
				margin-top: 121rpx;
			}
		}
	}
</style>